package cn.buk.tms.hotel.dto;

import cn.buk.common.util.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

/**
 * User: yfdai
 * Date: 14-11-14
 * Time: 上午9:03
 * @author yfdai
 */
public class HotelSearchResult {

    private int errcode;

    private String errmsg;

    private int pageNo;

    private int pageSize;

    private int pageTotal;

    private int rowCount;

    private List<HotelInfoDto> hotels;

    private List<MasterHotelDto> masterHotels;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.zzz", timezone = "GMT+8")
    private Date createTime = DateUtil.getCurDateTime();

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public int getRowCount() {
        return rowCount;
    }

    public void setRowCount(int rowCount) {
        this.rowCount = rowCount;
    }

    public List<HotelInfoDto> getHotels() {
        return hotels;
    }

    public void setHotels(List<HotelInfoDto> hotels) {
        this.hotels = hotels;
    }

    public List<MasterHotelDto> getMasterHotels() {
        return masterHotels;
    }

    public void setMasterHotels(List<MasterHotelDto> masterHotels) {
        this.masterHotels = masterHotels;
    }

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
